package com.in.dto;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @ClassName EmailDto
 * @Description 邮箱模板参数
 * @Author liulianjia
 * @Date 2024/12/3 10:54
 */
@Data
public class EmailDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 发送邮箱时显示的名称,可以不填 */
    private String displayName = "LIULIAN JIA的个人网站";
    /** 目标邮箱地址 */
    private String emailAddress;
    /** 邮件主题 */
    private String subject ="登录验证码";
    /** 邮件内容 */
    private String text;
    /** 验证码，用于设置缓存过期 */
    private String code;

    public EmailDto() {}

    public EmailDto(String emailAddress, String text, String code) {
        this.emailAddress = emailAddress;
        this.text = text;
        this.code = code;
    }

}
